home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5430 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: luss.is.ge.com!news
  2. From: "Westley L. Hespeth" <westley@geis.geis.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Help Needed On Using Scroll Bars
  5. Date: Sun, 04 Feb 1996 12:19:56 -0500
  6. Organization: GE Information Services, Inc.
  7. Message-ID: <3114EABC.744D@geis.geis.com>
  8. References: <310FC02B.4C1C@geis.geis.com>
  9. NNTP-Posting-Host: ras2.is.ge.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b6a (Win95; I)
  14.  
  15. westley wrote:
  16. > Hello,
  17. > (Borland 4.0)
  18. > I wish to use a Scroll Bar with my Pop-up Dialog Box.
  19. > The resource workshop creates one easy enough. The problem
  20. > is that the help and documetation leave you a little short
  21. > about how to communicate with it. There is doc on using
  22. > the TScrollbar class but nothing dealing with using
  23. > the Scrollbar created with the WS_VSROLLBAR attribute set
  24. > for a DLG.
  25. >                         Westley L. Hespeth
  26. >                         Westley@geis.geis.com
  27. >                         Speth Software
  28.  
  29. In time, I have answered my own question. If a dialog has a scrol bar
  30. created with the scroll bar style bit it will send messages (ie
  31. WM_VSCROLL & WM_HSCROLL). To controll it, you define the coresonding
  32. responce table entries in a reponce table for the derived dialog.
  33. These mesage will coresspond to EV_WM_VSCROLL or EV_WM_HSCROLL. The
  34. responce table macros will call void EvVScroll or EvHScroll. These
  35. functions can be overriden to provide the desired affect.
  36.  
  37.                 Westley L. Hespeth
  38.                 Speth Software.
  39.  
  40.